Measurement of pupil dilation and analgesia nociception index